package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.Promotion;
import com.nbsaas.boot.marketing.api.domain.response.PromotionResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 促销活动-实体对象转化成响应对象
*/

public class PromotionResponseConvert  implements Converter<PromotionResponse,Promotion> {

    @Override
    public PromotionResponse convert(Promotion source) {
        PromotionResponse  result = new  PromotionResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

